package com.gang.music.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gang.music.system.entity.SongInfo;
import com.gang.music.system.mapper.SongInfoMapper;
import com.gang.music.system.service.SongInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gang
 * @since 2017-10-26
 */
@Service
public class SongInfoServiceImpl extends ServiceImpl<SongInfoMapper, SongInfo> implements SongInfoService {
	
	@Autowired
	private SongInfoMapper songInfoMapper;
	
	@Override
	public void resetDayAmout() {
		
		songInfoMapper.resetDayAmout();
	}

	@Override
	public void resetWeekAmout() {
		
		songInfoMapper.resetWeekAmout();
	}

	@Override
	public void resetMonthAmout() {
		
		songInfoMapper.resetMonthAmout();
	}
	
	@Override
	public Long queryTodayAmout() {
		
		return songInfoMapper.queryTodayAmout();
	}
}
